/*
 * Admin.h
 *
 *  Created on: Apr 23, 2010
 *      Author: Sequoyha
 */

#ifndef ADMIN_H_
#define ADMIN_H_
#include "WineryList.h"
#include<iostream>
using namespace std;


class Administrator
{
public:
	//CONSTRUCTOR----------------------------------------------------
	Administrator();		//Constructor
	//SETTERS--------------------------------------------------------
	void setPasscode(int);	//Sets Passcode
	void setPassword(int);	//Sets Password
	//GETTERS--------------------------------------------------------
	int getPasscode();		//Gets Passcode
	int getPassword();		//Gets Password
	//FUNCTIONS & OPERATORS------------------------------------------
	bool passVerify();		//Checks password against passcode
	bool resetVerify();
private:
	static int passcode;
	int password;
	bool verified;
};

//NON CLASS FUNCTIONS------------------------------------------------
//Verifies the user password to allow access -Function
void AdminVerify();
//Adds a Winery to the list -Function
void AddWinery(WineryList &WineList);
void DeleteWinery(WineryList &WineList);
void EditWinery(WineryList &WineList);
WineInfo AddWine();
#endif /* ADMIN_H_ */
